<template>
    <view
        @tap="__e"
        @touchmove.stop.prevent="__e"
        class="mask data-v-50143e10"
        :data-event-opts="[
            ['tap', [['cancel', ['$event']]]],
            ['touchmove', [['', ['$event']]]]
        ]"
    >
        <view @tap.stop.prevent="__e" class="mask-content data-v-50143e10" :data-event-opts="[['tap', [['', ['$event']]]]]">
            <text @tap.stop.prevent="__e" class="new-iconfont icon-close close-btn data-v-50143e10" :data-event-opts="[['tap', [['cancel', ['$event']]]]]"></text>
            <view class="title data-v-50143e10">恭喜您获得</view>
            <view class="sku-list data-v-50143e10">
                <view class="item data-v-50143e10" v-for="(item, index) in skus" :key="index">
                    <image class="thumb data-v-50143e10" mode="aspectFill" :src="item.thumb"></image>

                    <view class="body data-v-50143e10">
                        <view class="sku-title data-v-50143e10">{{ item.title }}</view>
                        <view class="total data-v-50143e10">{{ 'x' + item.total + '件' }}</view>
                    </view>

                    <view class="dot dot1 data-v-50143e10"></view>

                    <view class="dot dot2 data-v-50143e10"></view>
                </view>
            </view>
            <view class="btn-c data-v-50143e10">
                <button @tap="__e" class="btn submit bg-yellow data-v-50143e10" :data-event-opts="[['tap', [['toBoxDetail', ['$event']]]]]" v-if="sku.sku_type == 3">
                    查看奖品
                </button>
                <block v-else>
                    <button @tap="__e" class="btn cancel bg-purple data-v-50143e10" :data-event-opts="[['tap', [['toMyBox', ['$event']]]]]">去赠送</button>
                    <button @tap="__e" class="btn submit bg-yellow deliver-btn data-v-50143e10" :data-event-opts="[['tap', [['toMyBox', ['$event']]]]]">去发货</button>
                </block>
            </view>
        </view>
    </view>
</template>

<script>
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['components/LotteryResultPopup/LotteryResultPopup'],
    {
        '3c0d': function (t, e, n) {
            'use strict';

            n.r(e);
            var o = n('f327');
            var u = n('4405');
            for (var c in u) {
                if (['default'].indexOf(c) < 0) {
                    (function (t) {
                        n.d(e, t, function () {
                            return u[t];
                        });
                    })(c);
                }
            }
            n('c73e');
            var a = n('f0c5');
            var r = Object(a.a)(u.default, o.b, o.c, false, null, '50143e10', null, false, o.a, void 0);
            e.default = r.exports;
        },
        4405: function (t, e, n) {
            'use strict';

            n.r(e);
            var o = n('5701');
            var u = n.n(o);
            for (var c in o) {
                if (['default'].indexOf(c) < 0) {
                    (function (t) {
                        n.d(e, t, function () {
                            return o[t];
                        });
                    })(c);
                }
            }
            e.default = u.a;
        },
        '550e': function (t, e, n) {},
        5701: function (t, e, n) {
            'use strict';

            (function (t) {
                Object.defineProperty(e, '__esModule', {
                    value: true
                });
                e.default = void 0;
                var n = {
                    components: {},
                    data: function () {
                        return {};
                    },
                    props: {
                        skus: {
                            type: Array
                        }
                    },
                    computed: {
                        sku: function () {
                            return this.skus[0] || {};
                        }
                    },
                    watch: {},
                    onLoad: function (t) {},
                    created: function () {},
                    methods: {
                        toBoxDetail: function () {
                            t.navigateTo({
                                url: '/pages/myBox/detail?uuid=' + this.sku.uuid
                            });
                        },
                        toMyBox: function () {
                            t.navigateTo({
                                url: '/pages/myBox/index'
                            });
                        },
                        cancel: function () {
                            this.$emit('cancel');
                        }
                    },
                    onPageScroll: function (t) {}
                };
                e.default = n;
            }.call(this, n('543d').default));
        },
        c73e: function (t, e, n) {
            'use strict';

            var o = n('550e');
            n.n(o).a;
        },
        f327: function (t, e, n) {
            'use strict';

            n.d(e, 'b', function () {
                return o;
            });
            n.d(e, 'c', function () {
                return u;
            });
            n.d(e, 'a', function () {});
            var o = function () {
                this.$createElement;
                this._self._c;
            };
            var u = [];
        }
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'components/LotteryResultPopup/LotteryResultPopup-create-component',
    {
        'components/LotteryResultPopup/LotteryResultPopup-create-component': function (t, e, n) {
            n('543d').createComponent(n('3c0d'));
        }
    },
    [['components/LotteryResultPopup/LotteryResultPopup-create-component']]
]);
</script>
<style>
@import './LotteryResultPopup.css';
</style>
